
public class Wops
{
    private final static long N = 10000000L;
    private final static double N2 = N / 10e5;
    private final static long M = 1000;
    private final static double D = 0.1;
    private static void busy()
    {
      double d=0, e;
      long i, u=0;
      long t0,t;
      System.out.println("wobs:");
      t0 = System.currentTimeMillis();
          System.out.flush();
      do
        {
          for(i=0;i<N;++i)
            {
              d += 1;
              d = Math.sin(d);
            }
          t = System.currentTimeMillis();
          e = (t-t0)/M;  if(e<D) e=D;
          e = (++u) * N2/e;
          System.out.printf(" %.0f", e);
          System.out.flush();
        }
      while(d<2);  /* No way to escape. */
    }

//int busy (void)
//{
//  double d=0, e;
//  long i, u=0;
//  time_t t0,t;
//  printf("wobs:"); fflush(stdout);
//  t0 = time(NULL);
//  do
//    {
//      for(i=0;i<N;++i)
//        {
//          d += 1;
//          d = sin(d);
//        }
//      t = time(NULL);
//      e = difftime(t,t0);  if(e<0.1) e=0.1;
//      e = (++u/e) * N / 1e5;
//      printf(" %.0f",e); fflush(stdout);
//    }
//  while(d<2);  /* No way to escape. */
//  return 0;
//}


    public static void main(String[] args)
    {
        busy();
    }
}
